package com.cray.intelligenthydrologyback.client.domain.entity;

import com.cray.intelligenthydrologyback.client.model.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 设备告警信息对象 hydrologic_device_alarms
 */
@Data
@ApiModel(value = "设备告警信息对象")
public class HydrologicDeviceAlarms extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 设备标识
     */
    @ApiModelProperty(value = "设备标识")
    private Long deviceId;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 点位名称
     */
    @ApiModelProperty(value = "点位名称")
    private String pointName;

    /**
     * 点位值
     */
    @ApiModelProperty(value = "点位值")
    private String pointValue;

    /**
     * 值上边界
     */
    @ApiModelProperty(value = "值上边界")
    private String thresholdUpperLimit;

    /**
     * 值下边界
     */
    @ApiModelProperty(value = "值下边界")
    private String thresholdDownLimit;

    /**
     * 告警类型：设备告警1；点位告警2
     */
    @ApiModelProperty(value = "告警类型：设备告警1；点位告警2")
    private String alarmType;

    /**
     * 告警内容
     */
    @ApiModelProperty(value = "告警内容")
    private String alarmContent;

    /**
     * 维修人员
     */
    @ApiModelProperty(value = "维修人员")
    private String repairPerson;

    /**
     * 维修时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "维修时间")
    private Date repairTime;

    /**
     * 维修内容
     */
    @ApiModelProperty(value = "维修内容")
    private String repairContent;

    /**
     * 维修结果
     */
    @ApiModelProperty(value = "维修结果")
    private String repairResult;

    /**
     * 安装地点
     */
    @ApiModelProperty(value = "安装地点")
    private String repairAddress;

    /**
     * 删除标志（N代表存在 Y代表删除）
     */
    @ApiModelProperty(value = "删除标志")
    private String delFlag;
}
